package cc.yaomm.common.basic.exception;

import cc.yaomm.common.basic.base.SuperEnum;

/**
 * <p>@Description : 业务异常</p>
 * <p>@Author : QiLin.Xing </p>
 * <p>@Date : 2017年8月24日 0024 </p>
 */
public class BusinessException extends RuntimeException {

    /**
     * 业务码
     */
    private SuperEnum code;

    public BusinessException() {
        super();
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(SuperEnum code, String message) {
        super(message);
        this.code = code;
    }

    public SuperEnum getCode() {
        return code;
    }
}
